//封装操作本地存储的token的文件
const TOKEN_KEY = 'heimamm79'

//保存token
export const saveToken = function (obj) {
    localStorage.setItem(TOKEN_KEY,JSON.stringify(obj))
}

//获取token
export const getToken = function () {
    return JSON.parse(localStorage.getItem(TOKEN_KEY))
}

//删除token
export const removeToken = function () {
    localStorage.removeItem(TOKEN_KEY)
}